home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HAM Radio 1997
/
HAM Radio 1997.iso
/
vbxs
/
crwvbx02
/
publishr.bas
< prev
next >
Wrap
BASIC Source File
|
1996-04-08
|
1KB
|
61 lines
'=============
' PUBLISHR.BAS
'=============
Option Explicit
DefInt A-Z
'
' This application demonstrates use of the Crystal Reports VBX.
' tips I've picked up over the last year. While I normally go
' into more detail with my own programs, I really wanted this
' program to be as simple as possible. The whole idea is to
' provide a working example of how the Crystal VBX can be used.
'
Sub Main ()
On Error GoTo MainError
Dim x As Integer
Screen.MousePointer = HOURGLASS
frmWorking.Show
SetWindowPos frmWorking.hWnd, -1, 0, 0, 0, 0, &H1 + &H2
DoEvents
'--in my usual routines I use the application path or read this
' from an INI file. For this example, just set the path to the
' location of the BIBLIO.MDB file that came with VB. Be sure to
' use the trailing "\".
CommonDir$ = "c:\vb\vbpro3\"
CrLf = Chr$(13) & Chr$(10)
frmPublishers.Show
DoEvents
Unload frmWorking
Screen.MousePointer = DEFAULT
Exit Sub
MainError:
frmWorking.Hide
Screen.MousePointer = DEFAULT
x = CriticalErrorHandler(Err)
Exit Sub
End Sub
Function VerifyDeleteRecord () As Integer
Message$ = "Delete this record from the Database?"
Style = 308
Title$ = "WARNING!"
Answer = MsgBox(Message$, Style, Title$)
If Answer = 6 Then
VerifyDeleteRecord = True
End If
End Function